-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix plugin with custom task invocation using swiftbuild on windows #9553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin with custom task invocation using swiftbuild on windows #9553
Conversation
| // For an executable target we create a `builtTool`. | ||
| else if executableOrBinaryModule.type == .executable { | ||
| return try [.builtTool(name: builtToolName, path: RelativePath(validating: executableOrBinaryModule.name))] | ||
| let exeName = hostTriple.isWindows() ? executableOrBinaryModule.name + ".exe" : executableOrBinaryModule.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: can we use executableName(name:) here so the executable name is updated in single location instead of of having to find all places where we need to add the .exe extension on Windows, and possibly any future platform that may have specific executable suffixes.
cf86294 to
cd46e43
Compare
|
@swift-ci test windows |
92d1b16 to
b89b4ea
Compare
- need to add .exe prefix to .builtTool binary so swiftbuild/llbuild file inputs are correct. closes: swiftlang#9189 rdar://161337478
b89b4ea to
d64bdd1
Compare
|
@swift-ci test |
|
@swift-ci test windows |
|
@swift-ci test macos |
…ndows (swiftlang#9553)" This reverts commit b083659.
closes: #9189
rdar://161337478